#!/usr/bin/node

var request = require('request');
var url = 'http://api.twitter.com/1/statuses/public_timeline.json';

request(url, function (error, response, body) {
	if (!error && response.statusCode == 200) {
		var cuerpo = JSON.parse(body);
		for(var i in cuerpo){
			console.log("ID:" + cuerpo[i]['user']['id']);
			console.log("Name:" + cuerpo[i]['user']['name']);
			console.log("-----------");
		}
	}else {
		console.log(error);
	}
})
